[ [ C a t e g o r y : F r i t z b o t   E T ] ] 
 
 = = = I n t r o = = = 
 
 T h i s   a r t i c l e   w i l l   p r o v i d e   s o m e   g e n e r a l   k n o w l e d g e   o f   E T   m a p   s c r i p t i n g   a n d   h o w   t o   u t i l i z e   t h e   t o o l s   a v a i l a b l e   f o r   s u p p o r t i n g   F r i t z B o t s .   
 
 
 
 = = = G e n e r a l   E T   M a p   S c r i p t i n g = = = 
 
 A n   E T   m a p   s c r i p t   g e t s   c a l l e d   e v e r y   t i m e   a n   e v e n t   ( i . e .   c o n s t r u c t   b u i l t )   h a p p e n s   d u r i n g   t h e   c o u r s e   o f   a   g a m e .   A   m a p s   s c r i p t   c a n   b e   f o u n d   i n s i d e   t h e   m a p s   p k 3   f i l e   ( m a p n a m e . s c r i p t ) .   T h e   f i r s t   e v e n t   i s   a l w a y s   t h e   m a p   l o a d .   F o r   t h a t   r e a s o n ,   e v e r y   E T   m a p   s c r i p t   s t a r t s   w i t h   a   b a s i c   l a y o u t : 
 
 
 
     g a m e _ m a n a g e r 
 
     { 
 
             s p a w n 
 
             { 
 
     
 
             } 
 
     } 
 
 
 
 ' g a m e _ m a n a g e r '   d e f i n e s   a   s c r i p t   b l o c k   a n d   ' s p a w n '   d e f i n e s   a   s u b   r o u t i n e   w i t h i n   t h e   s c r i p t   b l o c k .   E a c h   o f   t h e s e   m u s t   s t a r t   w i t h   a   {   a n d   e n d   w i t h   a   } . 
 
 
 
 W h e n   t h e   r o u n d   s t a r t s ,   i t   t r i g g e r s   t h e   g a m e _ m a n a g e r   s c r i p t   b l o c k   a n d   b e c a u s e   i t ' s   a   s p a w n   e v e n t   i t   w i l l   l o a d   t h e   s p a w n   s u b   r o u t i n e   w i t h i n   t h e   g a m e _ m a n a g e r   b l o c k .   O t h e r   e n t i t i e s   a r e   h a n d l e d   w i t h   t h e   s a m e   g e n e r a l   p r i n c i p a l s : 
 
 
 
     g a m e _ m a n a g e r 
 
     { 
 
             s p a w n 
 
             { 
 
     
 
             } 
 
     } 
 
     
 
     c o n s t r u c t _ e x a m p l e 
 
     { 
 
             s p a w n 
 
             { 
 
     
 
             } 
 
     
 
             b u i l d s t a r t   f i n a l 
 
             { 
 
     
 
             } 
 
     
 
             b u i l t   f i n a l 
 
             { 
 
     
 
             } 
 
     
 
             d e c a y e d   f i n a l 
 
             { 
 
     
 
             } 
 
         
 
             d e a t h   f i n a l 
 
             { 
 
     
 
             } 
 
         
 
     } 
 
 
 
 A   c o n s t r u c t   s c r i p t   b l o c k   h a s   b e e n   a d d e d   t o   t h e   m a p   s c r i p t .   I t   i s   u s e d   b y   a n y   e n t i t y   i n   t h e   m a p   w i t h   t h e   s c r i p t n a m e   c o n s t r u c t _ e x a m p l e .   I f   a n   e v e n t   h a p p e n s   t o   o u r   c o n s t r u c t ,   t h e   m a p   s c r i p t   i s   r e f e r e n c e d ,   t h e   s c r i p t   b l o c k   i s   c a l l e d ,   a n d   t h e   i n s t r u c t i o n s   w i t h i n   t h e   c o r r e s p o n d i n g   e v e n t s   s u b   r o u t i n e   a r e   e x e c u t e d .   
 
 
 
 T h e s e   s c r i p t   b l o c k s   c a n   b e   c r e a t e d   f o r   a n y   e n t i t y   w i t h   a   ' s c r i p t n a m e '   d e f i n e d .   T h e   o n l y   r e q u i r e d   s u b   r o u t i n e   i n   a   s c r i p t   b l o c k   i s   f o r   t h e   s p a w n   e v e n t . 
 
 
 
 F o r   a   l i s t   o f   m a p   s c r i p t i n g   c o m m a n d s ,   C h r u k e r   h a s   a   g o o d   r e f e r e n c e   p a g e   [ h t t p : / / g a m e s . c h r u k e r . d k / e n e m y _ t e r r i t o r y / s c r i p t i n g _ r e f e r e n c e . p h p   h e r e ] .     A   l e s s   d e t a i l e d   r e f e r e n c e   f r o m   S p l a s h   D a m a g e   i s   r e p r o d u c e d   [ h t t p : / / s i m l a n d . p l a n e t q u a k e . g a m e s p y . c o m / l d r 1 _ 1 / a p p e n d i x _ a . h t m   h e r e ] . 
 
 
 
 T h e r e   i s   a l s o   a   p d f   (   [ h t t p : / / 4 n e w b i e s . p l a n e t w o l f e n s t e i n . g a m e s p y . c o m / M a p _ S c r i p t i n g _ 4 _ N e w b i e s . p d f   M a p   S c r i p t i n g   4   N e w b i e s ]   )   t h a t   c a n   b e   h e l p f u l   t o   u n d e r s t a n d i n g   s c r i p t   f i l e   c o n t e n t s .     ' ' P l e a s e   n o t e   i t   w a s   w r i t t e n   f o r   n o o b   m a p   c r e a t o r s   n o t   w a y p o i n t e r s . ' ' 
 
 
 
 = = = E T   P r o   M a p   S c r i p t   S u p p o r t = = = 
 
 
 
 T h e   E T   P r o   T e a m   c r e a t e d   a   m a p   s c r i p t   c o m m a n d   c a l l e d   ' c r e a t e '   t o   g i v e   t h e   a b i l i t y   t o   a d d   e n t i t i e s   t o   m a p s .   F r i t z B o t   u s e s   t h e   c r e a t e   c o m m a n d   a s   w e l l .   T h e   c r e a t e   c o m m a n d   i s   u s e d   i n   t h e   s p a w n   s u b   r o u t i n e   o f   t h e   g a m e _ m a n a g e r   s c r i p t   b l o c k : 
 
 
 
     g a m e _ m a n a g e r 
 
     { 
 
             s p a w n 
 
             { 
 
     
 
                 c r e a t e 
 
                 { 
 
     
 
                 } 
 
     
 
             } 
 
     } 
 
 
 
 W h e n   t h e   m a p   i s   l o a d e d ,   t h e   g a m e s   i n i t i a l   s p a w n   e v e n t   i s   c a l l e d ,   t h e n   t h e   c r e a t e   c o m m a n d   i s   u s e d   t o   p l a c e   t h e   n e w   e n t i t i e s   i n   t h e   m a p . 
 
 
 
 G e n e r a l   I n f o r m a t i o n   a b o u t   E t   P r o   m a p   s c r i p t i n g   c a n   b e   f o u n d   [ h t t p : / / w o l f w i k i . a n i m e . n e t / i n d e x . p h p / M a p _ s c r i p t i n g   h e r e ] . 
 
 
 
 = = = = U s a g e   E x a m p l e s = = = = 
 
 
 
 [ [ F r i t z b o t _ F a k e _ B r u s h e s ] ] 
 
 
 
 [ [ F r i t z B o t _ B u t t o n s _ A n d _ L e v e r s ] ] 
 
 
 
 [ [ C r e a t i n g _ a _ f a k e _ t o i ] ] 
 
 
 
 
 
 = = E T   M a p   E n t i t i e s = = 
 
 A l l   o b j e c t s   i n   t h e   m a p   a r e   e n t i t i e s .   S o m e   e n t i t i e s   y o u   c a n   s e e   ( i . e .   a   f l a g )   a n d   s o m e   e n t i t i e s   a r e   i n v i s i b l e   ( f u n c _ e x p l o s i v e ) .   A   d e t a i l e d   e x p l a n a t i o n   o f   e n t i t i e s   i s   o u t s i d e   t h e   s c o p e   o f   t h i s   d o c u m e n t ,   b u t   f o r   a   g e n e r a l   u n d e r s t a n d i n g   y o u   c a n   v i s i t   t h i s   [ h t t p : / / w w w . w o l f e n s t e i n x . c o m / s u r f a c e / t u t o r i a l s / e n t i t i e s . h t m l   s i t e ] . 
 
 
 
 
 
 E a c h   e n t i t y   m u s t   h a v e   c e r t a i n   p r o p e r t i e s   d e f i n e d .   S o m e   o f   t h e   i m p o r t a n t   o n e s   f o r   c r e a t i n g   e n t i t i e s   w i t h   E T   P r o   m a p   s c r i p t i n g   a r e : 
 
 
 
 ' ' ' c l a s s n a m e   - > ' ' '   w h a t   t y p e   o f   e n t i t y   i s   i t   ( t r i g g e r _ o b j e c t i v e _ i n f o ,   f u n c _ e x p l o s i v e ,   e t c . ) 
 
 
 
 ' ' ' t a r g e t   - > ' ' '   i f   t h i s   e n t i t y   i s   u s e d ,   w h a t   e n t i t y   s h o u l d   i t   t r i g g e r 
 
 
 
 ' ' ' t a r g e t n a m e   - > ' ' '   u s e d   w i t h   t a r g e t ,   t h e   t a r g e t n a m e   i s   w h a t   t a r g e t   l o o k s   f o r 
 
 
 
 ' ' ' o r i g i n   - > ' ' '   t h e   p o s i t i o n   o f   t h e   e n t i t y 
 
 
 
 ' ' ' m i n s     - > ' ' '   m i n i m u m   x , y . z   p r o p e r t i e s   i n   r e l a t i o n   t o   t h e   o r i g i n 
 
 
 
 ' ' ' m a x s   - > ' ' '   m a x i m u m   x , y . z   p r o p e r t i e s   i n   r e l a t i o n   t o   t h e   o r i g i n 
 
 
 
 ' ' ' s c r i p t n a m e   - > ' ' '   f o r   u s e   w i t h   t h e   m a p   s c r i p t   ( n o t   a l w a y s   d e f i n e d ) 
 
 
 
 ' ' ' s p a w n f l a g s   - > ' ' '   b i t s e t   v a l u e   d e p e n d i n g   o n   t y p e   o f   e n t i t y   ( s e e   b e l o w ) 
 
 
 
 ' ' ' e f l a g s   - > ' ' '   E n t i t y   F l a g s .   o n l y   w o r r y   a b o u t   e f l a g s   6 5 5 3 6   
 
 
 
 ' ' ' t r a c k   - > ' ' '   u s e   w i t h   t h e   " y o u   a r e   n e a r "   m e s s a g e   f o r   t o i ' s 
 
 
 
 ' ' ' s h o r t n a m e   - > ' ' '   t h e   s h o r t   n a m e   f o r   t h i s   e n t i t y 
 
 
 
 
 
 ' ' ' s p a w n f l a g s   b i t s e t s   f o r   f u n c _ c o n s t r u c t i b l e ' s ' ' ' 
 
     C O N S T R U C T I B L E _ S T A R T _ B U I L T 	 1 
 
     C O N S T R U C T I B L E _ I N V U L N E R A B L E 	 2 
 
     A X I S _ C O N S T R U C T I B L E 	 	 	 4 
 
     A L L I E D _ C O N S T R U C T I B L E 	 	 8 
 
     C O N S T R U C T I B L E _ B L O C K _ P A T H S _ W H E N _ B U I L D 	 1 6 
 
     C O N S T R U C T I B L E _ N O _ A A S _ B L O C K I N G 	 	 	 3 2 
 
     C O N S T R U C T I B L E _ A A S _ S C R I P T E D 	 	 	 	 6 4 
 
     
 
 ' ' ' s p a w n f l a g s   b i t s e t s   f o r   f u n c _ e x p l o s i v e ' s ' ' ' 
 
     E X P L O S I V E _ S T A R T _ I N V I S 	 	 1 
 
     E X P L O S I V E _ T O U C H A B L E 	 	 	 2 
 
     E X P L O S I V E _ U S E S H A D E R 	 	 	 4 
 
     E X P L O S I V E _ L O W G R A V 	 	 	 8 
 
     E X P L O S I V E _ N O _ A A S _ B L O C K I N G 	 1 6 
 
     E X P L O S I V E _ T A N K 	 	 	 	 3 2 
 
 
 
 I n   m o s t   c a s e s ,   y o u   c a n   u s e   a n   e x a m p l e   e n t i t y   f r o m   e x i s t i n g   m a p   s c r i p t s   o r   u s i n g   e n t i t y   p r o p e r t i e s   f o u n d   w i t h   H o b b i t ' s   B S P   r e a d e r   ( i n   t h e   w a y p o i n t   t o o l ) . 
 
 
 
 = = = F i n d i n g   E n t i t y   P r o p e r t i e s = = = 
 
 F i n d i n g   p r o p e r t i e s   o f   e n t i t i e s   i n   a   m a p   c a n   b e   d o n e   w i t h   H o b b i t ' s   W a y p o i n t   T o o l .   I n   t h e   U t i l i t y   s e c t i o n ,   t h e r e   i s   a   B S P   r e a d e r .   S i m p l y   e x t r a c t   t h e   m a p s   . b s p   a n d   l o a d   i t   w i t h   t h e   r e a d e r .   Y o u   c a n   t h e n   b r o w s e   a l l   o f   t h e   e n t i t i e s   o r   s e a r c h   f o r   s p e c i f i c   e n t i t y   t y p e s : 
 
 
 
 [ [ I m a g e : B s p _ r e a d e r . g i f ] ] 
 
 
 
 = = S e t t i n g   E x i s t i n g   E n t i t y   P r o p e r t i e s = = 
 
 T h e   2 . 6 0   p a t c h   f o r   E T   i m p l e m e n t e d   a n   E T   P r o   c o m m a n d   t h a t   a l l o w s   f o r   c h a n g i n g   s o m e   o f   t h e   p r o p e r t i e s   o f   e x i s t i n g   e n t i t i e s .   T h i s   c a n   b e   u s e f u l   f o r   F r i t z B o t   i n   c a s e s   w h e r e   t r i g g e r s   f o r   s c r i p t   m o v e r s   a r e   t o o   s m a l l .   T h e   s e t   c o m m a n d   i s   u s e d   i n   t h e   s p a w n   s u b   r o u t i n e   o f   t h e   e n t i t i e s   s c r i p t   b l o c k : 
 
 
 
     e x a m p l e _ e n t i t y 
 
     { 
 
             s p a w n 
 
             { 
 
     
 
                 s e t 
 
                 { 
 
                         
 
                 } 
 
     
 
             } 
 
     } 
 
 
 
 A n   e x a m p l e   o f   c r e a t i n g   a   l a r g e r   m o v e   t r i g g e r   f o r   a   t a n k   w o u l d   b e : 
 
 
 
     t a n k _ t r i g g e r   
 
     { 
 
     	 s p a w n 
 
     	 { 
 
     	 	 s e t   / / m a k e   t h e   m o v e   t r i g g e r   l a r g e r 
 
     	 	 { 
 
     	 	 	 m i n s   " - 1 0 0 0   - 1 0 0 0   - 1 0 0 0 " 
 
     	 	 	 m a x s   " 1 0 0 0   1 0 0 0   1 0 0 0 " 
 
     	 	 } 
 
     
 
     	 } 
 
     
 
     } 
 
 
 
 T h e s e   a r e   t h e   d o c u m e n t e d   ( f r o m   e t p r o   f o r u m s )   p r o p e r t i e s   t h a t   c a n   b e   u s e d   w i t h   t h e   s e t   c o m m a n d : 
 
 
 
 ' ' ' m i n s ' ' ' 	 A   p o i n t   d e s c r i b i n g   t h e   l o c a t i o n   o f   t h e   l o w e r   c o r n e r   o f   t h e   b o u n d i n g   b o x .   ( e n t - > r . m i n s ) 
 
 
 
 ' ' ' m a x s ' ' ' 	 A   p o i n t   d e s c r i b i n g   t h e   l o c a t i o n   o f   t h e   u p p e r   c o r n e r   o f   t h e   b o u n d i n g   b o x .   ( e n t - > r . m a x s ) 
 
 
 
 ' ' ' c o n t e n t s ' ' ' 	 C o n t e n t s   f l a g s   -   d e s c r i p t i o n   a b o v e   ( e n t - > r . c o n t e n t s ) 
 
 
 
 ' ' ' s v f l a g s ' ' ' 	 S e r v e r   f l a g s   ( e n t - > r . s v F l a g s ) 
 
 
 
 ' ' ' c l i p m a s k ' ' ' 	 B r u s h   c o n t e n t   t y p e s   t o   c o l l i d e   w i t h .   ( e n t - > c l i p m a s k ) 
 
 
 
 ' ' ' c o u n t 2 ' ' ' 	 e n t i t y - s p e c i f i c   ( e n t - > c o u n t 2 ) 
 
 
 
 ' ' ' e f l a g s ' ' ' 	 E n t i t y   f l a g s   ( e n t - > s . e F l a g s ) 
 
 
 
 ' ' ' p o s _ t r T y p e ' ' ' 	 P o s i t i o n   t r a j e c t o r y   t y p e   ( e n t - > s . p o s . t r T y p e ) 
 
 
 
 ' ' ' p o s _ t r D e l t a ' ' ' 	 P o s i t i o n   t r a j e c t o r y   d e l t a     ( e n t - > s . p o s . t r T y p e ) 
 
 
 
 ' ' ' a p o s _ t r T y p e ' ' ' 	 A n g l e   t r a j e c t o r y   t y p e   ( e n t - > s . a p o s . t r T y p e ) 
 
 
 
 ' ' ' p o s _ t r D e l t a ' ' ' 	 A n g l e   t r a j e c t o r y   d e l t a     ( e n t - > s . a p o s . t r T y p e ) 
 
 
 
 ' ' ' c l a s s n a m e _ n o s p a w n ' ' ' 	 C h a n g e s   t h e   c l a s s   n a m e ,   b u t   d o e s n ' t   r e - s p a w n   t h e   e n t i t y .   ( e n t - > c l a s s n a m e ) 
 
 
 
 ' ' ' c u s t o m a x i s i m a g e ' ' ' 	 C u s t o m   c o m m a n d   m a p   i m a g e   f o r   t h e   A x i s   t e a m 
 
 
 
 ' ' ' c u s t o m a l l i e s i m a g e ' ' ' 
 
 
 
 ' ' ' c u s t o m a l l i e d i m a g e ' ' ' 	 C u s t o m   c o m m a n d   m a p   i m a g e   f o r   t h e   A l l i e d   t e a m 
 
 
 
 ' ' ' a l l o w t e a m s ' ' ' 	 T e a m s   a l l o w e d   t o   u s e   a n   e n t i t y   ( e n t - > a l l o w t e a m s ) 
 
 
 
 ' ' ' t a r g e t ' ' '   a n d   ' ' ' t a r g e t n a m e ' ' '   s e e m   t o   w o r k   a s   w e l l . 
 
 
 
 T h e   s e t   {   }   c o m m a n d   m a y   a l s o   w o r k   i n   o t h e r   n o n - s p a w n   s u b   r o u t i n e s   ( T o   b e   v e r i f i e d ) . 
 
 
 
 = = B a r r i e r   R e m o v a l = = 
 
 S o m e   o b s t a c l e s   i n   m a p s   a r e   d i f f i c u l t   f o r   t h e   b o t s   t o   n a v i g a t e   a r o u n d .   T h e   b a r r i e r R e m o v e   c o m m a n d   c a n   b e   u s e d   i n   c a s e s   w h e r e   t h e   e n t i t i e s   t o   b e   r e m o v e d   d o   n o t   h a v e   a   s c r i p t n a m e : 
 
     
 
     g a m e _ m a n a g e r 
 
     { 
 
             s p a w n 
 
             { 
 
     
 
                 b a r r i e r R e m o v e 
 
                 { 
 
                         x x x   / / t h e   e n t i t y   n u m b e r   o f   t h e   b a r r i e r   t o   r e m o v e 
 
                 } 
 
     
 
             } 
 
     } 
 
 
 
 T h i s   s h o u l d   o n l y   b e   u s e d   i n   c a s e s   w h e r e   t h e   b o t s   c a n n o t   d e s t r o y   t h e   b a r r i e r   t h e m s e l v e s   a n d   t h e   e n t i t y   d o e s   n o t   h a v e   a   s c r i p t n a m e . 
 
 
 
 M o r e   a b o u t   t h e   b a r r i e r R e m o v e   c o m m a n d   c a n   b e   f o u n d   [ h t t p : / / w i k i . b o t s - u n i t e d . c o m / i n d e x . p h p / F r i t z B o t _ E T _ C r e a t i n g _ W a y p o i n t s # b a r r i e r R e m o v e   h e r e ] . 
 
 
 
 I n   c a s e s   w h e r e   t h e   e n t i t y   h a s   a   s c r i p t   n a m e ,   t h e   r e m o v e   c o m m a n d   c a n   b e   u s e d   i n   t h e   s p a w n   e v e n t   o f   t h e   e n t i t i e s   s c r i p t   b l o c k : 
 
 
 
     e x a m p l e _ e n t i t y   / / t h e   s c r i p t n a m e 
 
       { 
 
     
 
             s p a w n 
 
             { 
 
                 r e m o v e 
 
             } 
 
     
 
         } 
 
 
 
 H e r e ' s   a n   e x a m p l e   o f   [ [ R e m o v i n g _ a _ D o o r ] ] . 
 
 
 
 = = C h a n g i n g   T e a m   S p a w n   p o i n t s = = 
 
 F r i t z B o t s   d o   n o t   h a v e   t h e   i n h e r e n t   a b i l i t y   t o   c h o o s e   a   s p a w n   p o i n t .   O n   s o m e   m a p s ,   t h e   s p a w n i n g   h a s   b e e n   r a n d o m i z e d   i n   t h e   c o d e   t o   s e l e c t   b e t w e e n   d e f a u l t   s p a w n   p o i n t s .   B a t t e r y   i s   a n   e x a m p l e   o f   t h i s ;   t h e   A l l i e d   b o t s   w i l l   s p a w n   a t   b o t h   p o s i t i o n s .   F o r   m a p s   t h a t   a r e   w a y p o i n t e d   a f t e r   t h e   f i n a l   r e l e a s e   o f   F r i t z B o t ,   t h e r e   i s   s t i l l   s o m e   c o n t r o l   f o r   b o t s   s p a w n   l o c a t i o n s   w i t h   m a p   s c r i p t i n g .   T h e   s i m p l e s t   f o r m   o f   c o n t r o l   i s   t h e   s e t a u t o s p a w n   c o m m a n d . 
 
 
 
 T h e   s y n t a x   a n d   p l a c e m e n t   o f   t h e   s e t a u t o s p a w n   c o m m a n d   i s   f a i r l y   s i m p l e .   T h e r e   w i l l   a l w a y s   b e   a n   i n s t a n c e   o f   i t   i n   t h e   g a m e _ m a n a g e r   s c r i p t   b l o c k   a n d   p o s s i b l y   i n   o t h e r   s e c t i o n s   w h e r e   a   m a p   e v e n t   e f f e c t s   s p a w n   l o c a t i o n s   ( i . e .   a   s p a w n   f l a g ) .   H e r e ' s   a n   e x a m p l e   o f   a   t y p i c a l   s p a w n   s e t u p   i n   t h e   g a m e _ m a n a g e r   b l o c k : 
 
 
 
     g a m e _ m a n a g e r 
 
     { 
 
         s p a w n 
 
         { 
 
                 . . . s n i p . . . 
 
                 s e t a u t o s p a w n   " A l l i e d   W e s t   B e a c h "   1 
 
                 s e t a u t o s p a w n   " W e s t   B u n k e r "   0 
 
                 . . . s n i p . . . 
 
             } 
 
         } 
 
 
 
 T h e   s y n t a x   f o r   t h e   c o m m a n d   i s   s e t a u t o s p a w n   " < d e s c r i p t i o n > "   < T e a m > 
 
 
 
 T e a m   i s   d e f i n e d   a s   1   =   A l l i e s ,   0   =   A x i s 
 
 
 
 T h e   d e s c r i p t i o n   u s e d   i s   t h e   d e s c r i p t i o n   d e f i n e d   i n   t h e   t e a m _ W o l f _ o b j e c t i v e   e n t i t y .   I n   s o m e   c a s e s   ( e s p e c i a l l y   c u s t o m   m a p s )   y o u   w i l l   n e e d   t o   u s e   t h e   b s p   r e a d e r   t o   f i n d   t h e   c o r r e c t   d e s c r i p t i o n   t o   u s e : 
 
 
 
 [ [ I m a g e : S p a w n   d e s c r i p t i o n . g i f ] ] 
 
 
 
 T h e   b o t s   w i l l   a l w a y s   s p a w n   a t   t h e   s e t a u t o s p a w n   v a l u e   ( i f   e n o u g h   s p a w n s   a r e   a v a i l a b l e ) ,   s o   w e   h a v e   t h e   a b i l i t y   t o   c h a n g e   t h e i r   s p a w n i n g   b y   c h a n g i n g   i t   i n   t h e   m a p   s c r i p t .   A n   e x a m p l e   o f   t h i s   i s   i n   t h e   F r o s t b i t e   m a p   s c r i p t .   W h e n   t h e   d o c u m e n t s   a r e   s t o l e n ,   t h e   A x i s   b o t s   w i l l   s p a w n   c l o s e r   t o   t h e   d e l i v e r   p o i n t .   I f   t h e   d o c u m e n t s   a r e   r e c o v e r e d ,   t h e y   w i l l   s p a w n   c l o s e r   t o   t h e   d o c u m e n t s : 
 
 
 
     d o c s 
 
     { 
 
                 t r i g g e r   s t o l e n   
 
                 {   
 
                       / / w m _ a n n o u n c e   " A l l i e s   h a v e   s t o l e n   t h e   S u p p l y   D o c u m e n t s ! "   
 
                       s e t s t a t e   d o c s _ c m _ m a r k e r   i n v i s i b l e 
 
     	       
 
     	       / /   m o d i f i e d   f o r   F r i t z b o t   - C r a p s h o o t 
 
     	       ' ' ' s e t a u t o s p a w n   " A x i s   G a r a g e "   0 ' ' '   
 
     
 
     	       / /   b o t s   d o n ' t   a n t i c i p a t e   y e t ,   s o   c o m p e n s a t e   w /   s p a w n   t i m e   - C r a p s h o o t 
 
     	       w m _ a x i s _ r e s p a w n t i m e 	       5 
 
                 }   
 
     
 
                 t r i g g e r   r e t u r n e d   
 
                 {   
 
                       / / w m _ a n n o u n c e   " S u p p l y   D o c u m e n t s   r e t u r n e d ! "   
 
                       s e t s t a t e   d o c s _ c m _ m a r k e r   d e f a u l t   
 
     
 
     	       / /   m o d i f i e d   f o r   F r i t z b o t   - C r a p s h o o t 
 
     	       ' ' ' s e t a u t o s p a w n   " A x i s   B a r r a c k s "   0 ' ' ' 
 
     
 
     	       / /   s e t   t h e   s p a w n   b a c k   t o   d e f a u l t   - C r a p s h o o t 
 
     	       w m _ a x i s _ r e s p a w n t i m e 	       2 0 
 
                 }   
 
     
 
                 t r i g g e r   c a p t u r e d   
 
                 {   
 
                 }   
 
     } 
 
 
 
 = = = C r e a t i n g   N e w   S p a w n s   F o r   T e s t i n g = = = 
 
 O n e   o f   t h e   d i f f i c u l t   p a r t s   o f   w a y p o i n t   t e s t i n g   i s   e v a l u a t i n g   a   p a r t   o f   t h e   p a t h s   w h i c h   a r e   r a r e l y   u s e d .     T h i s   c a n   b e   a   p a t h   t h a t   i s   o n l y   a v a i l a b l e   l a t e   i n   t h e   g a m e ,   o r   i s   f a r   f r o m   a n   o b j e c t i v e   o r   s p a w n .     A n d   y o u   w a n t   t o   k n o w   t h a t   t h e   b o t s   w i l l   u s e   t h e   p a t h   s u c c e s s f u l l y   w i t h o u t   k i l l i n g   t h e m s e l v e s ,   g e t t i n g   s t u c k   o r   g o i n g   a r o u n d   i n   c i r c l e s .     W h a t   y o u   w o u l d   l i k e   i s   t o   s i m p l y   t e l l   t h e   b o t   t o   t e l e p o r t   t o   t h a t   p o i n t   a n d   t h e n   f o l l o w   t h a t   p a t h .     I n   a   w a y   y o u   c a n   b y   a d d i n g   a   s i n g l e   s p a w n   p a d   a t   t h a t   p o i n t   a n d   w a i t   f o r   a   b o t   t o   s p a w n   t h e r e   a f t e r   d y i n g .     T h e   m e t h o d   i s   d e s c r i b e d   i n   d e t a i l   h e r e : [ [ T e s t _ s p a w n s _ f o r _ W a y p o i n t _ t e s t s ] ] 
 
 
 
 O n c e   y o u   c a n   h a n d l e   p l a c i n g   a   t e s t   s p a w n   y o u   k n o w   w h a t   i s   n e e d e d   t o   c r e a t e   n e w   s p a w n s   a n d   p a d s   a n y w h e r e   o n   t h e   m a p   t o   i m p r o v e   t h e   g a m e p l a y   ( e . g .   t h e   g a r a g e   s p a w n s   i n   f u e l d u m p ) .     A   s p a c i n g   o f   p a d s   o n   a   g r i d   o f   7 5 - 1 6 0   i s   t y p i c a l . 
 
 
 
 = = A I   S c r i p t   B a s i c   P r i n c i p a l s = = 
 
 T h i s   s e c t i o n   w i l l   d e s c r i b e   t h e   b a s i c   p r i n c i p l e s   o f   h o w   a n   A I   s c r i p t   w o r k s .   I f   y o u   a r e   l o o k i n g   f o r   d e t a i l e d   i n f o r m a t i o n   a b o u t   k e y w o r d s   a n d   s t r u c t u r e ,   l o o k   [ h t t p : / / w i k i . b o t s - u n i t e d . c o m / i n d e x . p h p / F r i t z B o t _ E T _ C r e a t i n g _ W a y p o i n t s # A I _ S c r i p t s   h e r e ] . 
 
 
 
 F r i t z B o t   r e l i e s   o n   m a p   e v e n t s   t o   m a n a g e   n o d e   c o n n e c t i o n s   a n d   a c t i o n s .   T h e   A I   s c r i p t   g i v e s   i n s t r u c t i o n s   t o   b e   e x e c u t e d   w h e n   c e r t a i n   m a p   e v e n t s   o c c u r .   A c t i o n   n u m b e r s   a r e   u s e d   t o   a s s o c i a t e   m a p   e v e n t s   w i t h   A I   s c r i p t   i n s t r u c t i o n s : 
 
 
 
     a c t i o n   1   / /   a   d y n a m i t e - a b l e   w a l l 
 
     { 
 
             n o d e _ c o n n e c t   1   2   t r u e   / / c o n n e c t   t h e   n o d e s 
 
     } 
 
 
 
 A c t i o n   1   i s   d e f i n e d   a s   a   d y n a m i t e   a c t i o n   i n   o u r   n a v   f i l e .   O n c e   t h e   w a l l   i s   d y n a m i t e d ,   t h a t   m a p   e v e n t   t r i g g e r s   a   c a l l   t o   t h e   A I   s c r i p t .   T h e   A I   s c r i p t   t h e n   l o o k s   f o r   a n   a c t i o n   t e s t   a s s o c i a t e d   w i t h   t h e   m a p   e v e n t .   B e c a u s e   w e   h a v e   s e t   a c t i o n   1 ' s   e n t i t y   n u m b e r   t o   t h e   t r i g g e r _ o b j e c t i v e _ i n f o   e n t i t y   n u m b e r   o f   t h e   w a l l ,   t h e   a s s o c i a t i o n   i s   m a d e   b e t w e e n   t h e   a c t i o n   t e s t   a n d   t h e   m a p   e v e n t .   
 
 
 
 E a c h   t i m e   a   s u p p o r t e d   m a p   e v e n t   o c c u r s   f o r   a n   e n t i t y ,   t h e   a c t i o n   t e s t   f o r   t h a t   e n t i t y   i s   c a l l e d   i n   t h e   A I   s c r i p t . 
 
 
 
 = = I n t e r a c t i n g   w i t h   t h e   A I   S c r i p t = = 
 
 R e l y i n g   o n   d e f a u l t   m a p   e v e n t s   t o   c o n t r o l   t h e   a c t i o n s   o f   t h e   b o t s   l i m i t s   t h e   a b i l i t y   t o   m a n a g e   t h e   f l o w   o f   t h e   g a m e   o n   m o r e   c o m p l e x   m a p s .   C r e a t i n g   e n t i t i e s   a n d   g e n e r a t i n g   m a p   e v e n t s   a t   c e r t a i n   p o i n t s   o f   t h e   m a p   s c r i p t   g i v e s   u s   t h e   a b i l i t y   t o   b e t t e r   m a n a g e   t h e   b o t s   o n   t h e   c o m p l e x   m a p s . 
 
 
 
 T h e r e   a r e   c u r r e n t l y   t w o   m e t h o d s   i n   w h i c h   w e   c a n   c r e a t e   m a p   e v e n t s   f r o m   t h e   m a p   s c r i p t   f o r   u s e   i n   t h e   A I   S c r i p t ;   a c t i o n _ e v e n t _ e x p l o d e   a n d   u s i n g   t h e   c o n s t r u c t   c o m m a n d   f o r   a   f a k e   c o n s t r u c t i b l e . 
 
   
 
 = = = A c t i o n _ E v e n t _ E x p l o d e = = = 
 
 A c t i o n _ E v e n t _ E x p l o d e   i s   a   d e f i n e d   a c t i o n   t y p e   i n   F r i t z B o t   ( # 3 4 ) .   I t   i s   u s e d   w i t h   t h e   e n t i t y   t y p e   f u n c _ e x p l o s i v e .   A n   e x a m p l e   o f   i t s   u s a g e   i s   t h e   s e w e r   g a t e   o n   F u e l d u m p :   
 
 
 
     a c t i o n   3 8   / /   s e w e r   g a t e   e x p l o d e   a c t i o n 
 
     { 
 
     
 
         / /   c o n n e c t   t h e   n o d e s 
 
         n o d e _ c o n n e c t   1 0 5   6 6 9   t r u e 
 
     
 
         / /   a c t i v a t e   s o m e   a l l i e d   a c t i o n s 
 
         a c t i v a t e A c t i o n _ G r o u p   7 
 
     
 
         / /   a c t i v a t e   a l t _ r o a m   i n   s e w e r   f o r   a x i s 
 
         a c t i v a t e A c t i o n   5 5 
 
     
 
     } 
 
 
 
 W h e n   t h e   t a n k   d e s t r o y s   t h e   s e w e r   g a t e ,   t h e   m a p   e v e n t   c a l l s   t h e   A I   s c r i p t   a n d   l o o k s   f o r   t h e   a c t i o n   t e s t   a b o v e . 
 
 
 
 B y   c r e a t i n g   a   f u n c _ e x p l o s i v e   i n   a   m a p   w i t h   e t p r o   m a p   s c r i p t i n g ,   w e   c a n   d o   t h e   s a m e   t h i n g   a l m o s t   a n y w h e r e   i n   a   m a p   s c r i p t .   F u n c _ e x p l o s i v e ' s   c a n   o n l y   b e   u s e d   o n c e   i n   a   m a p ,   s o   t h e y   a r e   b e s t   u s e d   w i t h   a c t i o n s   t h a t   a r e   n o t   t o g g l e d   o n   a n d   o f f . 
 
 
 
 A n   e x a m p l e   o f   a   c r e a t e d   f u n c _ e x p l o s i v e : 
 
 
 
     	 	 c r e a t e 
 
     	 	 { 
 
     	 	 	 s c r i p t n a m e   " p o s i t i o n 1 " 
 
     	 	 	 c l a s s n a m e   " f u n c _ e x p l o s i v e " 
 
     	 	 	 t a r g e t n a m e   " p o s i t i o n 1 " 
 
     	 	 	 o r i g i n   " 2 0 2 9   3 8 2 1   - 1 5 9 " 
 
     	 	 	 m i n s   " - 6 3   - 1 0   0 " 
 
     	 	 	 m a x s   " 6 3   1 0   1 2 8 " 
 
                                                 h e a l t h   1 0 0 0 0 0 0 
 
     	 	 	 s p a w n f l a g s   1 	 / /   E X P L O S I V E _ S T A R T _ I N V I S ( 1 ) 
 
     	 	 	 e f l a g s   6 5 5 3 6 	 / /   E F _ F A K E B M O D E L 
 
     	 	 	 s v f l a g s   1 	 / /   S V F _ N O C L I E N T 
 
     	 	 } 
 
 
 
 N o w   w e   n e e d   t o   t r i g g e r   t h e   m a p   e v e n t   w h e r e   w e   w a n t   t o   i n   t h e   m a p   s c r i p t .   F o r   t h i s   e x a m p l e ,   i t ' s   g o i n g   t o   b e   t r i g g e r e d   w h e n   a   t a n k   g e t s   t o   a   c e r t a i n   p o s i t i o n : 
 
 
 
     	 t r i g g e r   r u n _ 1 
 
     	 { 
 
     	 	 t r i g g e r   s e l f   t r a c k s _ f o r w a r d 
 
     	 	 t r i g g e r   g a m e _ m a n a g e r   a l l i e s _ s t e a l _ t a n k 
 
     
 
     	 	 a c c u m   1   b i t s e t   2 
 
     	 	 f o l l o w s p l i n e   0   s p l n 3   5 0   w a i t   l e n g t h   3 2 
 
     	 	 a c c u m   1   b i t r e s e t   2 
 
     
 
     	 	 ' ' ' / / t r i g g e r   t h e   a i s c r i p t   b y   r e m o v i n g   t h e   c r e a t e d   f u n c _ e x p l o s i v e ' ' ' 
 
     	 	 ' ' ' a l e r t e n t i t y   p o s i t i o n 1 ' ' ' 
 
     
 
     	 	 t r i g g e r   s e l f   r u n _ c o n t i n u e 
 
     
 
     	 } 
 
 
 
 T h e   a l e r t e n t i t y   ( a l e r t e n t i t y   < t a r g e t n a m e   o f   f u n c _ e x p l o s i v e > )   c o m m a n d   i s   u s e d   t o   r e m o v e   o u r   f u n c _ e x p l o s i v e ;   w h i c h   i n   t u r n   c a l l s   o u r   a i s c r i p t : 
 
 
 
     a c t i o n   1   / /   a c t i o n _ e v e n t _ e x p l o d e   f o r   w h e n   t h e   t a n k   g e t s   t o   s p l i n e   1 
 
     { 
 
     
 
     / / t a n k   i s   a t   s p l i n e   1 ,   s o   m o v e   t h e   b o t s   t o   t h e   n e x t   p h a s e 
 
     d e a c t i v a t e A c t i o n _ G r o u p   1 
 
     a c t i v a t e A c t i o n _ G r o u p   2 
 
     
 
     } 
 
 
 
 I n   c a s e s   w h e r e   w e   w a n t   t o   b e   a b l e   t o   c a l l   t h e   s a m e   a c t i o n   t e s t   i n   t h e   A I   s c r i p t   m u l t i p l e   t i m e s ,   i t ' s   b e s t   t o   u s e   a   c r e a t e d   f u n c _ c o n s t r u c t i b l e . 
 
 
 
 = = = F a k e   C o n s t r u c t ' s = = = 
 
 T h e   p r e m i s e   o f   t h e   f a k e   c o n s t r u c t   i s   s i m p l e ;   w e   w a n t   t o   c r e a t e   o n e   a c t i o n   t e s t   i n   o u r   A I   s c r i p t   f o r   m u l t i p l e   m a p   e v e n t s .   F r i t z B o t   h a s   a   l i m i t   o f   1 6   a c t i o n   t e s t s   i n   a n   A I   s c r i p t .   T h e   p r o b l e m   w a s   t h a t   s o m e   m a p s   r e q u i r e   m o r e   t h a n   1 6   a c t i o n   t e s t s   t o   b e   w a y p o i n t e d   p r o p e r l y .   B y   c o m b i n i n g   a c t i o n   t e s t s ,   t h e   1 6   a c t i o n   t e s t   l i m i t   c a n   b e   a v o i d e d . 
 
 
 
 F i r s t   w e   n e e d   t o   c r e a t e   t h e   f a k e   c o n s t r u c t : 
 
 
 
     g a m e _ m a n a g e r 
 
     { 
 
     	 s p a w n 
 
     	 {     
 
         	 	 c r e a t e 
 
     	 	 { 
 
     	 	 	 o b j f l a g s   " 2 " 
 
     	 	 	 s c r i p t N a m e   " h e l p e r _ e n t _ o b j " 
 
     	 	 	 c l a s s n a m e   " t r i g g e r _ o b j e c t i v e _ i n f o " 
 
     	 	 	 t a r g e t n a m e   " h e l p e r _ e n t _ o b j " 
 
     	 	 	 t a r g e t   " h e l p e r _ e n t " 
 
     	 	 	 o r i g i n   " - 2 4 3 3   4 8 0 0   1 5 4 3 " 
 
     	 	 	 m i n s   " - 6 3   - 1 0   0 " 
 
     	 	 	 m a x s   " 6 3   1 0   1 2 8 " 
 
     	 	 	 h e a l t h   1 0 0 0 0 0 0 
 
     	 	 	 / / s p a w n f l a g s   1 7 	 / /   A X I S _ O B J E C T I V E ( 1 )   |   C U S T O M I M A G E 
 
     	 	 	 t r a c k   " h e l p e r _ e n t " 
 
     	 	 	 s h o r t n a m e   " h e l p e r _ e n t " 
 
     	 	 	 e f l a g s   6 5 5 3 6 
 
     	 	 	 / / c u s t o m a x i s i m a g e   " g f x / l i m b o / c m _ r a d a r _ m a i n d o o r " 
 
     	 	 	 / / m o d e l   " * 1 6 " 
 
     	 	 } 
 
     
 
     	 	 c r e a t e 
 
     	 	 { 
 
     	 	 	 c l a s s n a m e   " f u n c _ c o n s t r u c t i b l e " 
 
     	 	 	 s p a w n f l a g s   " 4 " 
 
     	 	 	 s c r i p t n a m e   " h e l p e r _ e n t " 
 
     	 	 	 t a r g e t n a m e   " h e l p e r _ e n t " 
 
     	 	 	 o r i g i n   " - 2 4 3 3   4 8 0 0   1 5 4 3 " 
 
       	 	 	 m i n s   " - 6 3   - 1 0   0 " 
 
     	 	 	 m a x s   " 6 3   1 0   1 2 8 " 
 
     	 	 	 e f l a g s   6 5 5 3 6 
 
     	 	 	 s v f l a g s   1 
 
     	 	 	 m o d e l   " * 2 4 " 
 
     	 	 } 
 
                                 / /   r e s t   o f   g a m e _ m a n a g e r   b l o c k   i s   h e r e   / /   
 
     } 
 
 
 
 N o w   w e   n e e d   t o   s e t   u p   t h e   p o i n t s   w h e r e   w e   w a n t   t o   u s e   t h e   a c t i o n   t e s t   i n   t h e   m a p   s c r i p t .   T h i s   m e t h o d   t a k e s   a d v a n t a g e   o f   t h e   c o n s t r u c t   c o m m a n d   u s e d   i n   e t   m a p   s c r i p t i n g : 
 
 
 
     f l a g 1 
 
     { 
 
     	 t r i g g e r   a x i s _ c a p t u r e 
 
     	 { 
 
     	 	 ' ' ' c o n s t r u c t   h e l p e r _ e n t ' ' '   / / c a l l   t h e   a i s c r i p t   - c r a p s h o o t 
 
     	 	 t r i g g e r   g a m e _ m a n a g e r   f l a g 1 r e d 
 
     	 } 
 
     
 
     	 t r i g g e r   a l l i e d _ c a p t u r e 
 
     	 { 
 
     	 	 ' ' ' c o n s t r u c t   h e l p e r _ e n t ' ' '   / / c a l l   t h e   a i s c r i p t   - c r a p s h o o t 
 
     	 	 t r i g g e r   g a m e _ m a n a g e r   f l a g 1 b l u e 
 
     	 } 
 
     	 
 
     	 t r i g g e r   d e l 
 
     	 { 
 
     	 	 r e m o v e 
 
     	 } 
 
     } 
 
     
 
     d e f e n s e 2 
 
     { 
 
     	 . . . s n i p . . . 
 
     	 b u i l t   f i n a l 
 
     	 { 
 
     	 	 ' ' ' c o n s t r u c t   h e l p e r _ e n t ' ' '   / / c a l l   t h e   a i s c r i p t   - c r a p s h o o t 
 
     	 	 s e t s t a t e   d e f e n s e 2   d e f a u l t 
 
     	 	 s e t s t a t e   d e f e n s e 2 _ m a t e r i a l s   i n v i s i b l e 
 
     	 	 s e t s t a t e   d e f e n s e 2 _ m a t e r i a l s _ c l i p   i n v i s i b l e 
 
     	 	 s e t s t a t e   d e f e n s e 2 _ f l a g   i n v i s i b l e 
 
     
 
     	 	 w m _ a n n o u n c e 	 " t h e   c a n y o n   r o p e   b r i d g e   h a s   b e e n   c o n s t r u c t e d " 
 
     
 
     	 } 
 
     
 
     	 d e a t h 
 
     	 { 
 
     	 	 ' ' ' c o n s t r u c t   h e l p e r _ e n t ' ' '   / / c a l l   t h e   a i s c r i p t   - c r a p s h o o t 
 
     	 	 s e t s t a t e   d e f e n s e 2   i n v i s i b l e 
 
     
 
     	 	 s e t s t a t e   d e f e n s e 2 _ m a t e r i a l s   d e f a u l t 
 
     	 	 s e t s t a t e   d e f e n s e 2 _ m a t e r i a l s _ c l i p   d e f a u l t 
 
     	 	 s e t s t a t e   d e f e n s e 2 _ f l a g   d e f a u l t 
 
     
 
     	 	 w m _ a n n o u n c e 	 " t h e   c a n y o n   r o p e   b r i d g e   h a s   b e e n   d e s t r o y e d " 
 
     
 
     	 } 
 
     } 
 
 
 
 N o w   w e   h a v e   t h e   m a p   s c r i p t   s e t   u p   t o   c a l l   o u r   h e l p e r   e n t i t y   ( f a k e   c o n s t r u c t )   w h e n   a n y t h i n g   h a p p e n s   t o   t h e   f l a g   a n d   t h e   d e f e n s e 2   c o n s t r u c t i b l e .   A t   t h i s   p o i n t ,   y o u   s a v e   t h e   m a p   s c r i p t   a n d   o p e n   y o u r   n a v   f i l e   w i t h i n   t h e   F r i t z   E d i t o r .   F i n d   t h e   e n t i t y   n u m b e r   o f   t h e   f a k e   c o n s t r u c t   w i t h   t h e   c o m m a n d   / f a k e t o i s .   Y o u   s h o u l d   s e e   i t   l i s t e d   w i t h   t h e   n a m e   h e l p e r _ e n t _ o b j   ( t h e   t o i   f o r   o u r   h e l p e r ) .   C r e a t e   a   c o n s t r u c t   a c t i o n   a n y w h e r e   i n   t h e   m a p .   G i v e   i t   a   g o a l   n u m b e r   o f   9 9 9   a n d   s e t   t h e   e n t i t y   n u m b e r . 
 
 
 
 N e x t ,   w e   c r e a t e   r e g u l a r   a c t i o n s   f o r   e a c h   o f   t h e   o b j e c t i v e s   w e   w i l l   u s e   w i t h   o u r   h e l p e r   a c t i o n   t e s t ;   i . e .   s e t   u p   t h e   f l a g   a c t i o n   a n d   d e f e n s e 2   c o n s t r u c t i o n   n o r m a l l y . 
 
 
 
 C r e a t i n g   t h e   a c t i o n   t e s t   i n   t h e   A I   s c r i p t   i s   t h e   l a s t   s t e p : 
 
 
 
     a c t i o n   1   / /   o u r   h e l p e r   e n t i t y 
 
     { 
 
         / / F L A G   T E S T S 
 
         i f _ f d a _ o w n e r _ a l l i e s   2 
 
                 a c t i v a t e A c t i o n _ G r o u p   1 
 
         i f _ f d a _ o w n e r _ a x i s   2 
 
                 d e a c t i v a t e A c t i o n _ G r o u p   1 
 
     
 
         / / D E F E N S E 2   T E S T S 
 
         i f _ c o n s t r u c t _ b u i l t _ t r u e   3 
 
                 a c t i v a t e A c t i o n _ G r o u p   2 
 
         i f _ c o n s t r u c t _ b u i l t _ f a l s e   3 
 
                 d e a c t i v a t e A c t i o n _ G r o u p   3 
 
     
 
     } 
 
 
 
 S o   w e   h a v e   j u s t   c o m b i n e d   t w o   s c r i p t a b l e   m a p   e v e n t s   i n t o   o n e   a c t i o n   t e s t .   R e m e m b e r   t h a t   e a c h   t i m e   a n   e v e n t   h a p p e n s ,   a l l   t e s t s   i n   t h i s   a c t i o n   t e s t   w i l l   b e   r u n .   I t ' s   v e r y   i m p o r t a n t   t o   m a k e   s u r e   t h a t   y o u   c o m b i n e   t h e   r i g h t   a c t i o n   t e s t s   o r   y o u   u s e   e x t r a   c h e c k s   ( A N D   /   O R )   i n   y o u r   a c t i o n   t e s t .   U s a g e   o f   g _ a c t i o n _ i n f o   i s   r e c o m m e n d e d   t o   t e s t   t h a t   a c t i o n s   a r e   b e i n g   t o g g l e d   c o r r e c t l y   i n   a l l   c a s e s .   Y o u   c a n   c o m b i n e   a s   m a n y   a c t i o n   t e s t s   a s   y o u   w a n t   /   n e e d   a s   l o n g   a s   y o u   a r e   w i t h i n   t h e   6 4   k e y w o r d   l i m i t   p e r   a c t i o n   t e s t . 
 
 
 
 S o m e   m a p s   h a v e   n o   r o o m   f o r   a d d i n g   t h e   t r i g g e r _ o b j e c t i v e _ i n f o   e n t i t y   r e q u i r e d   f o r   t h i s   m e t h o d .   A s   l o n g   a s   t h e r e   i s   a   h e a l t h   a n d / o r   a m m o   c a b i n e t   w i t h   a   T O I   a n d   s c r i p t n a m e ,   i t   s t i l l   c a n   b e   d o n e .   S i m p l y   d o n ' t   a d d   t h e   t r i g g e r _ o b j e c t i v e _ i n f o   e n t i t y   f r o m   t h e   e x a m p l e   a b o v e   ( j u s t   a d d   t h e   f u n c _ c o n s t r u c t i b l e ) .   F i n d   t h e   s c r i p t n a m e   o f   t h e   c a b i n e t   w i t h   H o b b i t ' s   B S P   r e a d e r   a n d   c h a n g e   t h e   t a r g e t   f o r   i t   t o   t a r g e t n a m e   o f   y o u r   c r e a t e d   f u n c _ c o n s t r u c t i b l e : 
 
 
 
     / /   m a x   t r i g g e r _ o b j e c t i v e _ i n f o ' s ,   s o   l e t ' s   h i j a c k   a   c a b i n e t   - c r a p s h o o t 
 
     
 
     c a m p o _ h a c a b i n e t _ t o i   / / t h e   s c r i p t n a m e   o f   t h e   c a b i n e t   w e   a r e   u s i n g 
 
     { 
 
     
 
                 s p a w n 
 
     
 
                 { 
 
     
 
                             s e t 
 
     
 
                             { 
 
     
 
                                         t a r g e t   " h e l p e r _ e n t " 
 
     
 
                             } 
 
     
 
                 } 
 
     
 
     } 
 
 
 
 T h e   a b o v e   e x a m p l e   w a s   u s e d   i n   V e n i c e .   B e   s u r e   t o   s e t   u p   t h e   c o n s t r u c t   a c t i o n   u s i n g   t h e   T O I   o f   t h e   c a b i n e t   f o r   t h i s .   E v e r y t h i n g   e l s e   i s   d o n e   t h e   s a m e   a s   a b o v e . 
 
 
 
 I f   t h e r e   a r e   n o   a v a i l a b l e   t r i v i a l   T O I s   l i k e   h e a l t h   a n d   a m m o   c a b i n e t s   a n d   y o u   c a n ' t   a d d   a n y   m o r e   s c r i p t e d   T O I s   y o u   m i g h t   s t i l l   h a v e   a n   o p t i o n .     I n   a   s e n s e   y o u   c a n   t i m e   s h a r e   a   T O I .     F o r   e x a m p l e   i f   y o u   a r e   s c r i p t i n g   i n   f a k e   f u n c _ e x p l o s i v e s   f o r   f e e d b a c k   o n   t h e   p o s i t i o n   o f   a   v e h i c l e   t h e n   y o u   m a y   b e   a b l e   t o   f r e e   u p   s o m e   o f   t h e i r   T O I s .     S a y   t h e   m a p   h a s   a   c o n s t r u c t i b l e   l i k e   a n   M G   t o w e r   t h a t   i s   i n   a n   a r e a   t h a t   l o s e s   s t r a t e g i c   v a l u e   l a t e r   i n   t h e   m a t c h .     A n d   t h e r e   i s   a   s p l i n e   w h i c h   w a s   t o   b e   s c r i p t e d   w i t h   a   f a k e t o i   t h a t   i s   t r i g g e r e d   l a t e   i n   t h e   m a t c h .       T h e n   w h e n   y o u r   v e h i c l e   r e a c h e s   t h a t   s p o t ,   s c r i p t   i n   t h e   r e m o v a l   o f   t h e   M G   t o w e r .     N o w   i n s t e a d   o f   a d d i n g   a c t i o n _ e v e n t _ e x p l o d e   a c t i o n s   i n   t h e   n a v   f i l e   f o r   t h a t   s p l i n e ,   y o u   w i l l   a d d   a n   a c t i o n _ e v e n t _ e x p i r e   a c t i o n .     S o   i n   y o u r   a i s c r i p t   t h e r e   w i l l   b e   t h e   a c t i o n   t e s t   f o r   t h e   c o n s t r u c t   a n d   t h e r e   w i l l   b e   a n   a c t i o n   t e s t   f o r   t h e   a c t i o n _ e v e n t _ e x p i r e   t h a t   y o u   a d d e d .     A s   l o n g   a s   n o t h i n g   e l s e   i n v o k e s   t h e   t o t a l   r e m o v a l   o f   t h e   t o w e r   i t   s h o u l d   w o r k   o u t   O K .     T h i s   m e t h o d   i s   u s e d   i n   t h e   e a g l e s _ 2 w a y _ b 3   w a y p o i n t s   t o   d e t e c t   w h e n   t h e   b u s   r e a c h e s   t h e   h a n g a r . 
 
 
 
 
 
 S o m e   o f   t h e   t h i n g s   y o u   c a n   d o   w i t h   f a k e   c o n s t r u c t s   i n c l u d e   
 
 *   H e l p e r   e n t s   c o m b i n i n g   2   d i f f e r e n t   a c t i o n s   i n s i d e   t h e   s a m e   a c t i o n   t e s t   ( S e e   t h e   t e m p l e _ f i n a l   e x a m p l e   a b o v e ) . 
 
 *   H e l p e r   e n t s   t o   h a n d l e   c o m p l e x   l o g i c   t h a t   c a n ' t   b e   d o n e   e a s i l y   i n   t h e   a i s c r i p t   o r   f o r   w h i c h   s p a c e   i s   n o t   a v a i l a b l e .     F o r   i n s t a n c e   i f   t h e   l o g i c   r e q u i r e s   c o u n t i n g ,   o r   a c c e s s   t o   s y s t e m   v a r i a b l e s   t h e n   t h e   a i s c r i p t   c a n   n o t   h a n d l e   i t   d i r e c t l y . 
 
 *   P r o v i d e   f e e d b a c k   f o r   b u t t o n s ,   l e v e r s   o r   o t h e r   t h i n g s   o p e r a t e d   b y   " f l o o r   t r i g g e r s " .     ( S e e   [ [ F r i t z B o t _ B u t t o n s _ A n d _ L e v e r s ] ] ) . 
 
 *   P r o v i d e   a   t r i g g e r   t o   m a k e   a l l   c l a s s e s   o f   b o t s   r e a c t   t o   a n   e v e n t   n o t   c o v e r e d   i n   t h e   a i s c r i p t   l a n g u a g e .     F o r   e x a m p l e   o n l y   t h e   d e f e n d i n g   e n g i n e e r   b o t s   r e s p o n d   t o   a   " d y n a m i t e   p l a n t e d   e v e n t " .     B u t   c o m m u n i c a t e   t h e   d y n a m i t e d   e v e n t   b a c k   a n d   t h e   a i s c r i p t   c a n   d i r e c t   t h e   o t h e r   c l a s s e s   o f   e i t h e r   t e a m   t o   n e w   c a m p   o r   r o a m   a c t i o n s   b e f o r e   t h e   d y n a m i t e   b l o w s .   ( S e e   [ [ M a k i n g _ B o t s _ R e s p o n d _ T o _ D y n a m i t e _ P l a n t e d _ E v e n t s ] ] . ) 
 
 *   C o m m u n i c a t e   t o   t h e   a i s c r i p t   w h e n   a   T r a m ,   C a b l e   c a r ,   E l e v a t o r ,   G l i d e r   o r   o t h e r   r e - u s a b l e   m o v e r   i s   i n   p o s i t i o n   t o   a l l o w   b o t s   t o   g e t   o n   o r   o f f   ( E x a m p l e :   T h e   m o n o r a i l   c a r   i n   N o r t h p o l e ) . 
 
 
 
 [ h t t p : / / w i k i . b o t s - u n i t e d . c o m / i n d e x . p h p / F r i t z b o t _ M a p _ S c r i p t i n g   P e r m a n e n t   l i n k   t o   t h i s   p a g e ] 
 
 [ [ C a t e g o r y : F r i t z B o t   E T ] ] 
 
 